﻿﻿
@{
    ViewBag.Title = "EmployeePageList";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@section css{
    <link rel="stylesheet" href="~/assets/portal/assets/css/common.css" />
    <link rel="stylesheet" href="~/bussiness/js/base/reset.css" />
    <style>
        .ant-select-arrow, .ant-select-clear {
            position: absolute;
            right: 10px;
        }
    </style>
}
<div id="PerformanceMeansure" class="font-['SourceHanSansSC']">
    <a-style-provider hash-priority="high">
        <a-config-provider :locale="vlocale">

            <header class="px-5 box-border">
                <div class="flex items-center">
                    <div class="w-full h-[48px] text-[13px]  rounded-lg mx-auto my-[10px]  bg-white  text-[#888888] text-3xl flex items-center px-10">   <div class="w-22 h-22 bg-blue-200 mr-5"> <img class="w-full h-full cursor-pointer" v-on:click="PerformanceMeansureParams.vvback()" src="~/Assets/nimgs/exit.png" alt="返回" /></div> <span class="text-[]">首页<span class="mx-2">/</span>履职考核<span class="mx-2">/</span><span v-on:click="PerformanceMeansureParams.tt" class="text-[#424758] text-[15px]">考核实施</span> </span>  </div>
                </div>
                <a-tabs v-on:change="PerformanceMeansureParams.tchange" type="card" style="height: 100%; width: 100%; padding: 10px 30px; box-sizing: border-box" v-model:active-key="PerformanceMeansureParams.cIndex.value" class="w-full h-[48px] text-[13px] rounded-lg  bg-white">
                    <a-tab-pane v-for="(e,i) in PerformanceMeansureParams.tabList.value" :key="e.value" :tab="e.label">
                        <template v-if="PerformanceMeansureParams.cIndex.value==0">
                            <div class="w-full h-min-[108px] bg-white py-8">
                                <div class="mb-5 text-[16px] font-bold text-black">筛选条件</div>
                                <a-row>
                                    <a-form layout="inline"
                                            :model="PerformanceMeansureParams.queryParams.value">
                                        <a-form-item label="年份">
                                            <a-select placeholder="请选择年份" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.year"
                                                      style="width:120px">
                                                <a-select-option v-for="e in PerformanceMeansureParams.yearList.value" :value="e.value">{{e.label}}</a-select-option>

                                            </a-select>
                                        </a-form-item>
                                        <a-form-item label="月份">
                                            <a-select placeholder="请选择月份" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.month"
                                                      style="width: 120px">
                                                <a-select-option v-for="e in PerformanceMeansureParams.monthList.value" :value="e.value">{{e.label}}</a-select-option>

                                            </a-select>
                                        </a-form-item>
                                        <a-form-item label="部门">
                                            <a-select placeholder="请选择部门" allow-clear :options="PerformanceMeansureParams.deptList.value" show-search :filter-option="PerformanceMeansureParams.filterOption" v-model:value="PerformanceMeansureParams.queryParams.value.dept"
                                                      style="width:180px">


                                            </a-select>
                                        </a-form-item>
                                        <a-form-item>
                                            <a-col><a-button v-on:click="PerformanceMeansureParams.getTableList(true)" type="primary">查询</a-button></a-col>
                                        </a-form-item>
                                    </a-form>




                                </a-row>

                                <div class="flex w-full mt-10">
                                    <a-card :bordered="true" class="w-full  mt-12">
                                        <template #title>
                                            <div class="w-full flex justify-between items-center">
                                                <div class="flex items-center"> <div>月度考核</div> <div class="ml-7"><a-tag color="#108ee9">总数:{{PerformanceMeansureParams.pagination.value.total}}</a-tag></div></div>
                                                <a-space>


                                                    <template v-if="PerformanceMeansureParams.Ids.value.length==0">
                                                        <a-tooltip>
                                                            <template #title>
                                                                未选择任何数据
                                                            </template>
                                                            <a-space>
                                                                <a-button disabled type="primary">批量通过</a-button>
                                                                <a-button disabled type="primary" danger>批量驳回</a-button>
                                                            </a-space>
                                                        </a-tooltip>
                                                    </template>
                                                    <template v-else>
                                                        <a-button v-on:click="PerformanceMeansureParams.plSubmit(true)" type="primary">批量通过</a-button>
                                                        <a-button v-on:click="PerformanceMeansureParams.plSubmit(false)" type="primary" danger>批量驳回</a-button>

                                                    </template>

                                                    <a-button v-on:click="PerformanceMeansureParams.fillInfo" type="primary">新增</a-button>

                                                </a-space>

                                            </div>
                                        </template>
                                        <a-table class="mt-10" :row-selection="PerformanceMeansureParams.rowSelection" row-key="Id" :loading="PerformanceMeansureParams.pagination.value.loading" v-on:change="PerformanceMeansureParams.handleTableChange" :pagination="PerformanceMeansureParams.pagination.value" :data-source="PerformanceMeansureParams.dataSource1.value" :columns="PerformanceMeansureParams.columns1.value">

                                        </a-table>

                                    </a-card>

                                </div>

                            </div>
                        </template>
                        <template v-if="PerformanceMeansureParams.cIndex.value==1">
                            <div class="w-full h-min-[108px] bg-white py-8">
                                <div class="mb-5 text-[16px] font-bold text-black">筛选条件</div>
                                <a-row>
                                    <a-form layout="inline"
                                            :model="PerformanceMeansureParams.queryParams.value">
                                        <a-form-item label="年份">
                                            <a-select placeholder="请选择年份" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.year"
                                                      style="width: 120px">
                                                <a-select-option v-for="e in PerformanceMeansureParams.yearList.value" :value="e.value">{{e.label}}</a-select-option>

                                            </a-select>
                                        </a-form-item>

                                        <a-form-item label="部门">
                                            <a-select placeholder="请选择部门" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.dept" :options="PerformanceMeansureParams.deptList.value" show-search :filter-option="PerformanceMeansureParams.filterOption"
                                                      style="width: 180px">

                                            </a-select>
                                        </a-form-item>
                                        <a-form-item>
                                            <a-col><a-button type="primary">查询</a-button></a-col>
                                        </a-form-item>
                                    </a-form>




                                </a-row>
                                <div class="flex w-full mt-10">
                                    <a-card :bordered="true" class="w-full  mt-12">
                                        <template #title>
                                            <div class="w-full flex justify-between items-center">
                                                <div class="flex items-center"> <div>年度考核</div> <div class="ml-7"><a-tag color="#108ee9">总数:{{ PerformanceMeansureParams.pagination.value.total }}</a-tag></div></div>

                                                <a-button v-on:click="PerformanceMeansureParams.fillInfo" type="primary">填报考核</a-button>
                                            </div>



                                        </template>


                                        <a-table class="mt-10" v-on:change="PerformanceMeansureParams.handleTableChange" :loading="PerformanceMeansureParams.pagination.value.loading" :pagination="PerformanceMeansureParams.pagination.value" :data-source="PerformanceMeansureParams.dataSource2.value" :columns="PerformanceMeansureParams.columns2.value">

                                        </a-table>

                                    </a-card>

                                </div>

                            </div>
                        </template>
                        <template v-if="PerformanceMeansureParams.cIndex.value==2">
                            <div class="w-full h-min-[108px] bg-white py-8">
                                <div class="mb-5 text-[16px] font-bold text-black">筛选条件</div>
                                <a-row>
                                    <a-form layout="inline"
                                            :model="PerformanceMeansureParams.queryParams.value">
                                        <a-form-item label="年份">
                                            <a-select placeholder="请选择年份" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.year"
                                                      style="width:120px">
                                                <a-select-option v-for="e in PerformanceMeansureParams.yearList.value" :value="e.value">{{e.label}}</a-select-option>

                                            </a-select>
                                        </a-form-item>

                                        <a-form-item label="部门">
                                            <a-select placeholder="请选择部门" allow-clear v-model:value="PerformanceMeansureParams.queryParams.value.dept"
                                                      style="width:180px">
                                                <a-select-option v-for="e in PerformanceMeansureParams.deptList.value" :value="e.value">{{e.label}}</a-select-option>

                                            </a-select>
                                        </a-form-item>
                                        <a-form-item>
                                            <a-col><a-button type="primary">查询</a-button></a-col>
                                        </a-form-item>
                                    </a-form>




                                </a-row>

                                <div class="flex w-full">
                                    <a-card :bordered="true" class="w-full  mt-12">
                                        <template #title>
                                            <div class="w-full flex justify-between items-center">
                                                <div class="flex items-center"> <div>各部门总分值</div> <div class="ml-7"><a-tag color="#108ee9">总数:35</a-tag></div></div>


                                            </div>



                                        </template>


                                        <a-table class="mt-10" :loading="PerformanceMeansureParams.pagination.value.loading" v-on:change="PerformanceMeansureParams.handleTableChange" :pagination="PerformanceMeansureParams.pagination.value" :data-source="PerformanceMeansureParams.dataSource3.value" :columns="PerformanceMeansureParams.columns3.value">

                                        </a-table>

                                    </a-card>

                                </div>

                            </div>
                        </template>
                    </a-tab-pane>
                </a-tabs>

                <a-modal v-model:open="PerformanceMeansureParams.plOpen.value" width="40%" :title="PerformanceMeansureParams.opType.value==true?'批量通过':'批量驳回'" v-on:ok="PerformanceMeansureParams.handleOk" :ok-text="PerformanceMeansureParams.opType.value==true?'通过':'驳回'" :ok-button-props="{type:'primary',danger:!PerformanceMeansureParams.opType.value}">
                    <a-form style="margin-top:20px" :model="PerformanceMeansureParams.plform.value">
                        <a-form-item label="备注">
                            <a-textarea v-model:value="PerformanceMeansureParams.plform.value.Remark" />
                        </a-form-item>

                    </a-form>
                </a-modal>
            </header>

        </a-config-provider>
    </a-style-provider>
</div>
@section Js{
    <script src="~/bussiness/js/base/tailwind.js"></script>
    <script type="module">
        import Composition from '../../bussiness/js/pg/Performance/meansure.js?v=@DateTime.Now.ToString("yyyyMMddHHmmss")'
        import localeValues from '../../Bussiness/js/base/es/locale/zh_CN.js'
        singalApp('PerformanceMeansure', Composition, localeValues)
    </script>
}
